package com.lyl.servicestatistics.mapper;

import com.lyl.servicestatistics.entity.StatisticsDaily;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 网站统计日数据 Mapper 接口
 * </p>
 *
 * @author 雷艳玲
 * @since 2022-06-29
 */
public interface StatisticsDailyMapper extends BaseMapper<StatisticsDaily> {

    @Select("select id,date_calculated,register_num,login_num,web_access_num,video_view_num,course_price_sum from statistics_daily where date_calculated > #{statrTime} and date_calculated <= #{endTime}  order by date_calculated asc")
    List<StatisticsDaily> getDataByBetween(String statrTime, String endTime);
}
